package com.zhouzj.task.zookeeper;

import com.zhouzj.task.zookeeper.common.rpc.ConfigKeeper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @Author: zhouzhijun
 * @Date: 2021/7/4 11:23
 */
@SpringBootApplication
public class ProviderApplication {

    private static final String ZOOKEEPER_ADDRESS = "127.0.0.1:2181";

    public static void main(String[] args) {

        int port = 8990;
        ConfigKeeper configKeeper = ConfigKeeper.getInstance();
        configKeeper.setPort(port);
        configKeeper.setZkAddr(ZOOKEEPER_ADDRESS);
        configKeeper.setProviderSide(true);

        SpringApplication.run(ProviderApplication.class, args);
    }
}
